package com.hsogoo.ultraman;

/**
 * Created by za-huangsaigang on 2018/9/19.
 */
public class Constant {
    /**
     * zookeeper 链接地址
     */
    public static final String ZK_URL = "zookeeper.url";

    /**
     * 根目录
     */
    public static final String CONFIG_ROOT_PATH = "/ultraman_conf";

    /**
     * 客户端列表
     */
    public static final String CONFIG_SERVER_LIST = "/ultraman_conf/config_server_list";

    /**
     * 配置发布节点，用来监听配置变化
     */
    public static final String CONFIG_PUBLISH_NODE = "/ultraman_conf/config_publish";

    /**
     * 运行环境
     */
    public static final String APP_PROFILE = "app.profile";

    /**
     * configServer项目所在的机器ip
     */
    public static final String SERVER_IP = "server.ip";

    /**
     * configServer项目暴露的端口
     */
    public static final String SERVER_PORT = "server.port";

    public static final String CONTEXT_PATH = "/configServer/pullNamespaceConfig/";
    public static final String PROTOCOL_PREFIX = "http://";

    public static final String IP_PORT_SEPARATOR = ":";

    public static final String PATH_PREFIX = "/";

    /**
     * namespace保留字
     */
    public static final String[] RESERVED_WORDS = {"global", "app", "env"};
    public static final String RESERVED_WORD_GLOBAL = "global";
    public static final String RESERVED_WORD_APP = "app";
    public static final String RESERVED_WORD_ENV = "env";

    public static final String NO_APP_NAME_SET = "noAppNameSet";
    public static final String APP_PROPERTIES_CLASSPATH = "/META-INF/app.properties";
}
